home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / 04-10-20-2.swf / scripts / frame_1 / PlaceObject2_35_4 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-11-18  |  364 b   |  15 lines

  1. onClipEvent(enterFrame){
  2.    nowLoaded = _root.getBytesLoaded();
  3.    total = _root.getBytesTotal();
  4.    percentLoaded = Math.floor(nowLoaded / total * 100);
  5.    if(nowLoaded != 0)
  6.    {
  7.       progress._xscale = percentLoaded;
  8.       if(percentLoaded >= 70)
  9.       {
  10.          this.gotoAndStop(2);
  11.          _parent.run.gotoAndStop("finished");
  12.       }
  13.    }
  14. }
  15.